import BaseDao from './base';

export default class CustomerDao extends BaseDao {

  modelName = 'Customer';

  constructor(modules) {
    super(modules);
  }

  async getCustomerAll(customer) {
    return await this.findAll(customer);
  }

  async getCustomerList(customer) {
    return await this.findAndCountAll(customer);
  }

  async addCustomer(customer) {
    return await this.insert(customer);
  }
}